<center>
	<table border=2>
		<?php if($data[0]['type']['t_id'] == 3){

			echo '<a href="?r=lottery/list/t/4">排列五</a>&nbsp';
			echo '<a href="">22选5</a>&nbsp';
		}
		elseif ($data[0]['type']['t_id'] == 4) {
			echo '<a href="">排列五</a>&nbsp';
			echo '<a href="">排列三</a>&nbsp';
		}
		else
		{
			echo '<a href="">22选5</a>&nbsp';
			echo '<a href="">排列三</a>&nbsp';
		}
           
		?>
		
		<h1><?php echo $data[0]['type']['name']?></h1>
		<tr>
			<th>开奖日期</th>
			<th>期号</th>
			<th>开奖号码</th>
		</tr>
		<?php foreach ($data as $key => $value) {?>
		<tr>
			<td><?php echo $value['time'];?></td>
			<td><?php echo $value['qi'];?></td>
			<td><?php echo $value['num'];?></td>
		</tr>
		<?php } ?>
	</table>
</center>